package com.chasel.demo.devbox.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author XieLongzhen
 * @date 2019/3/22 11:41
 */
@Getter
@Setter
@ConfigurationProperties("dev-box.distributed-lock")
public class DistributedLockProperties {
    /**
     * 注意：':'在yml文件里有特殊意义，需要用双引号把包含':'的prefixKey包起来
     */
    private String prefixKey = "default:distributed-lock:";
    private boolean enabled = false;
}
